home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / stereo / GL_5.2 / Makefile < prev    next >
Encoding:
Makefile  |  1994-08-02  |  913 b   |  43 lines

  1. #!smake
  2.  
  3. include $(ROOT)/usr/include/make/commondefs
  4.  
  5. GLSTARGS= backg grid offstereo onstereo CheckExtension 
  6. GLSMTARGS= nestedcubes 
  7. TARGETS = $(GLSTARGS) $(GLSMTARGS)
  8.  
  9. OBJECTS = nestedcubes.o stereopersp.o glxhelper.o onoffstereo.o stereowin.o
  10. LCOPTS    = -g
  11. LDIRT    = libstereo.a
  12.  
  13. #
  14. #use this line for IRIX 5.2 makes
  15. #
  16. LLDLIBS = libstereo.a -lXext -lgl -lX11
  17.  
  18. #
  19. #use these two lines for IRIX 4.0.5 or irix4 makes
  20. #
  21. #LLDLIBS = libstereo.a SGIStereo.o_4.0.5 -lgl -lm -lX11
  22.  
  23. # override the prototypes macro in commondefs:  if you want
  24. # prototyping turned on, comment out the next line.
  25. PROTOTYPES=
  26.  
  27. default all: $(TARGETS)
  28.  
  29. $(TARGETS): libstereo.a
  30.  
  31. include $(COMMONRULES)
  32.  
  33. libstereo.a: libstereo.a(stereopersp.o) libstereo.a(onoffstereo.o) \
  34.         libstereo.a(stereowin.o) libstereo.a(glxhelper.o)
  35.         $(AR) vr $@ $?
  36.  
  37. $(GLSTARGS): $$@.c
  38.     $(CCF) -o $@ $@.c $(LDFLAGS)
  39.  
  40. $(GLSMTARGS): $$@.c
  41.     $(CCF) -o $@ $@.c $(LDFLAGS) -lm
  42.  
  43.